﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <SolidColorBrush x:Key="ColorDetailCombo" Color="#FF185184"/>

    <DataTemplate x:Key="DataTemplateCliente">
        <StackPanel Orientation="Vertical" MinWidth="250" Margin="0,2,20,2">
            <TextBlock Text="{Binding Path=NomeCliente}" />
            
            <StackPanel Orientation="Vertical" HorizontalAlignment="Right">
                <TextBlock FontSize="9" Foreground="{StaticResource ColorDetailCombo}" HorizontalAlignment="Right">
                    <Run Text="Id: " Foreground="Black"/>
                    <Run Text="{Binding Path=IdCliente}" />
                </TextBlock>
                <TextBlock FontSize="9" Foreground="{StaticResource ColorDetailCombo}" HorizontalAlignment="Right"
                           Text="{Binding Path=FormatCPFouCNPJ}"/>
            </StackPanel>
        </StackPanel>
    </DataTemplate>

    <DataTemplate x:Key="DataTemplateProduto">
        <StackPanel Orientation="Vertical" Margin="0,2">
            <TextBlock Text="{Binding Path=NomeProduto}" />
        </StackPanel>
    </DataTemplate>

    <DataTemplate x:Key="DataTemplateMoeda">
        <StackPanel Orientation="Vertical" MinWidth="150" Margin="0,2,20,2">
            <TextBlock Text="{Binding Path=cd_Moeda}" />
            <StackPanel Orientation="Vertical" HorizontalAlignment="Right">
                <TextBlock FontSize="9" Foreground="{StaticResource ColorDetailCombo}" HorizontalAlignment="Right" 
                           Text="{Binding Path=nm_Moeda}"/>
                <TextBlock FontSize="9" Foreground="{StaticResource ColorDetailCombo}" HorizontalAlignment="Right"
                           Text="{Binding Path=ValorCotacao, StringFormat=\{0:n5\}}"/>
            </StackPanel>
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>
